﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace DARE
{
    public class CKeyboardEvent
    {
        #region fields

        private Keys m_key;

        #endregion

        #region properties

        public Keys Key { get { return m_key; } }

        #endregion

        #region ctor

        public CKeyboardEvent(Keys key)
        {
            m_key = key;
        }

        #endregion

        #region methods

        public override string ToString()
        {
            return m_key.ToString();
        }

        #endregion

        #region operators

        public override bool Equals(object obj)
        {
            if (!(obj is CKeyboardEvent))
                return false;
            return obj == this;
        }

        public static bool operator ==(CKeyboardEvent key1, CKeyboardEvent key2)
        {
            if (key1.m_key == key2.m_key)
                return true;
            return false;
        }

        public static bool operator !=(CKeyboardEvent key1, CKeyboardEvent key2)
        {
            return !(key1 == key2);
        }

        #endregion
    }
}
